package bc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BcRechargeRouter struct {
}

// InitBcRechargeRouter 初始化 bcRecharge表 路由信息
func (s *BcRechargeRouter) InitBcRechargeRouter(Router *gin.RouterGroup) {
	bcRechargeRouter := Router.Group("bcRecharge").Use(middleware.OperationRecord())
	bcRechargeRouterWithoutRecord := Router.Group("bcRecharge")
	var bcRechargeApi = v1.ApiGroupApp.BcApiGroup.BcRechargeApi
	{
		bcRechargeRouter.POST("createBcRecharge", bcRechargeApi.CreateBcRecharge)             // 新建bcRecharge表
		bcRechargeRouter.DELETE("deleteBcRecharge", bcRechargeApi.DeleteBcRecharge)           // 删除bcRecharge表
		bcRechargeRouter.DELETE("deleteBcRechargeByIds", bcRechargeApi.DeleteBcRechargeByIds) // 批量删除bcRecharge表
		bcRechargeRouter.PUT("updateBcRecharge", bcRechargeApi.UpdateBcRecharge)              // 更新bcRecharge表
	}
	{
		bcRechargeRouterWithoutRecord.GET("findBcRecharge", bcRechargeApi.FindBcRecharge)       // 根据ID获取bcRecharge表
		bcRechargeRouterWithoutRecord.GET("getBcRechargeList", bcRechargeApi.GetBcRechargeList) // 获取bcRecharge表列表
	}
}
